package com.ljf.config.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.ljf.common.model.BasisModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 发号器配置表头对象  config_base_impulse_sender_header
 *
 * @author LJF
 * @since 2025-01-09
 */
@Data
@ApiModel("发号器配置表头")
@EqualsAndHashCode(callSuper = true)
@TableName("config_base_impulse_sender_header")
public class ConfigBaseImpulseSenderHeader extends BasisModel {

	private static final long serialVersionUID = 1L;

	/**
	 * Java类型: Long
	 * 数据库类型: bigint
	 * 注释: ID
	 * {@link ConfigBaseImpulseSenderHeader#COL_ID}
	 */
	@TableId(value="id", type= IdType.AUTO)
	@JsonProperty("id")
	@ApiModelProperty(value = "ID")
	private Long id;

	/**
	 * Java类型: String
	 * 数据库类型: varchar(10)
	 * 注释: 归属服务
	 * {@link ConfigBaseImpulseSenderHeader#COL_BELONG_SERVICE}
	 * {@link com.ljf.config.enums.ConfigBaseImpulseSenderHeaderBelongServiceEnum}
	 */
	@TableField("belong_service")
	@JsonProperty("belongService")
	@ApiModelProperty(value = "归属服务")
	private String belongService;

	/**
	 * Java类型: String
	 * 数据库类型: varchar(50)
	 * 注释: 编码
	 * {@link ConfigBaseImpulseSenderHeader#COL_CODE}
	 */
	@TableField("code")
	@JsonProperty("code")
	@ApiModelProperty(value = "编码")
	private String code;

	/**
	 * Java类型: String
	 * 数据库类型: varchar(20)
	 * 注释: 名称
	 * {@link ConfigBaseImpulseSenderHeader#COL_NAME}
	 */
	@TableField("name")
	@JsonProperty("name")
	@ApiModelProperty(value = "名称")
	private String name;

	/**
	 * Java类型: Integer
	 * 数据库类型: tinyint
	 * 注释: 刷新模式(1:按年刷新;2:按月刷新;3:按天刷新;99:不刷新)
	 * {@link ConfigBaseImpulseSenderHeader#COL_REFRESH_MODE}
	 * {@link com.ljf.config.enums.ConfigBaseImpulseSenderHeaderRefreshModeEnum}
	 */
	@TableField("refresh_mode")
	@JsonProperty("refreshMode")
	@ApiModelProperty(value = "刷新模式(1:按年刷新;2:按月刷新;3:按天刷新;99:不刷新)")
	private Integer refreshMode;


	/**
	 * ID
	 * {@link ConfigBaseImpulseSenderHeader#id}
	 */
	public static final String COL_ID = "id";
	/**
	 * 归属服务
	 * {@link ConfigBaseImpulseSenderHeader#belongService}
	 */
	public static final String COL_BELONG_SERVICE = "belong_service";
	/**
	 * 编码
	 * {@link ConfigBaseImpulseSenderHeader#code}
	 */
	public static final String COL_CODE = "code";
	/**
	 * 名称
	 * {@link ConfigBaseImpulseSenderHeader#name}
	 */
	public static final String COL_NAME = "name";
	/**
	 * 刷新模式(1:按年刷新;2:按月刷新;3:按天刷新;99:不刷新)
	 * {@link ConfigBaseImpulseSenderHeader#refreshMode}
	 */
	public static final String COL_REFRESH_MODE = "refresh_mode";

}
